@import 'reset';
@import 'variable';
@import 'shutter';

body {
    font-size: 14px;
    font-family: 'microsoft yahei';
    overflow-x: hidden;
    color: #5a5a5a;
    background-color: #fff;
}

.clearfix {
    *zoom: 1;

    &:before,
    &:after {
        content: " ";
        display: table;
    }

    &:after {
        clear: both;
    }
}

.pull-left {
    float: left;
}

.pull-right {
    float: right;
}

.text-center {
    text-align: center;
}

a {
    color: #333;

    :hover {
        color: #000;
    }
}

.container {
    position: relative;
    margin: 0 auto;
    width: 1200px;
}

.btn {
    display: inline-block;
    padding: 12px 40px;
    color: #fff;
    border-radius: 40px;
    border: 1px solid #fff;
    transition: all .5s;

    &:hover {
        background-color: $color;
    }
}

.loading {
    overflow: hidden;
}

.welcome {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: url(../img/build.png) no-repeat top center #fff;
    z-index: 9999;

    .logo {
        position: absolute;
        top: 50%;
        left: 50%;
        margin-left: -255px;
        margin-top: -155px;
        width: 510px;
        height: 310px;
    }
}

.header {
    .top {
        height: 100px;
        border-bottom: 1px solid #e3e3e3;

        .logo {
            a {
                color: #444;

                span {
                    color: $color;
                }
            }

            float: left;
            margin-top: 20px;
            font-size: 24px;
            line-height: 28px;
            text-transform: uppercase;
            font-weight: bold;

            img {
                margin-right: 10px;
                width: 200px;
            }
        }

        .nav {
            float: right;
            margin-top: 35px;

            ul {
                li {
                    float: left;
                    margin-left: 25px;

                    a {
                        display: block;
                        padding: 5px 0;
                        width: 110px;
                        text-align: center;
                        line-height: 20px;
                        font-size: 16px;
                    }

                    &.active a,
                    &:hover a {
                        color: #fff;
                        background-color: #282828;
                    }
                }
            }
        }
    }
}

.banner-index {
    position: relative;
    width: 100%;
    overflow: hidden;

    .content {
        position: relative;
        margin: -600px auto 0;
        width: 1000px;
        height: 600px;
        overflow: hidden;
        text-align: center;
        z-index: 8888;

        .logo {
            display: inline-block;
            margin-top: 100px;
            width: 200px;
            height: 120px;
            background: url(../img/logo.png) no-repeat top center;
            background-size: cover;
        }

        h2 {
            margin: 200px 0 50px;
            color: $color;
            font-size: 48px;
            font-weight: bold;
            letter-spacing: 5px;
        }

        p {
            margin-bottom: 30px;
            font-size: 18px;
            color: #fff;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .btn {
            margin-top: 30px;
        }
    }
}

.section {
    padding: 80px 0;

    .stitle {
        height: 75px;
        text-align: center;
        background: url(../img/stitle.png) no-repeat bottom center;

        h2 {
            font-size: 26px;
            text-transform: uppercase;
        }

        h3 {
            margin-top: 10px;
            font-size: 18px;
            color: $color;
        }
    }

    .content {
        margin-top: 80px;
    }
}

.ad {
    padding: 100px 0;
    text-align: center;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    h2,
    p {
        width: 450px;
        margin: 0 auto 30px;
    }

    h2 {
        color: $color;
        font-size: 32px;
        line-height: 45px;
    }

    p {
        color: #fff;
        font-size: 16px;
        line-height: 26px;
    }
}

.section-business {
    ul {
        li {
            float: left;
            width: 20%;
            text-align: center;
            font-size: 15px;
            line-height: 22px;
            border-right: 1px dashed #999;

            img {
                margin-bottom: 30px;
                width: 100px;
                transition: all 0.5s;
            }

            h3 {
                margin-bottom: 5px;
                font-size: 18px;
            }

            p {
                text-transform: uppercase;
            }

            &:last-child {
                border-right: 0
            }

            &:hover {
                img {
                    transform: scale(1.2);
                }
            }
        }
    }
}

.ad-1 {
    background-image: url(../img/ad1.jpg);
}

.section-case {
    .content {
        ul {
            li {
                position: relative;
                float: left;
                margin-right: 24px;
                margin-bottom: 10px;
                overflow: hidden;

                a {
                    display: block;
                    padding: 15px;
                    border: 1px solid #ccc;
                    transition: all 0.5s;

                    img {
                        width: 250px;
                        height: 188px;
                        margin-bottom: 10px;
                    }

                    h3 {
                        width: 250px;
                        font-size: 16px;
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                    }

                    &:hover {
                        border-color: $color;
                    }
                }

                &:nth-child(4n) {
                    margin-right: 0;
                }
            }
        }
    }
}

.ad-2 {
    background-image: url(../img/ad2.jpg);
}

.bg1 {
    background: url(../img/bg_news.jpg) no-repeat top center;
}

.section-news {
    .nav {
        margin-top: 45px;
        text-align: center;

        ul {
            li {
                display: inline-block;

                a {
                    padding: 2px 8px;
                    margin: 0 5px;
                    border: 1px solid #333;
                    border-radius: 30px;
                }

                &.active,
                &:hover {
                    a {
                        border-color: $color;
                        background-color: $color;
                        color: #fff;
                    }
                }
            }
        }
    }

    .content {

        .list-news,
        .top-news {
            width: 48%;
        }

        .list-news {
            float: left;

            ul {
                li {
                    position: relative;
                    margin-bottom: 20px;

                    i {
                        position: absolute;
                        left: 0;
                        font-size: 52px;
                        font-weight: bold;
                    }

                    a {
                        margin-left: 80px;
                        border-bottom: 1px solid #e2e2e2;
                    }
                }
            }
        }

        .top-news {
            float: right;

            img {
                margin-bottom: 5px;
                width: 100%;
                height: 230px;
            }
        }

        a {
            display: block;

            h3 {
                width: 100%;
                font-size: 18px;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
            }

            span,
            p {
                margin-top: 12px;
                color: #999
            }

            span {
                display: block;
                font-size: 12px;
            }

            p {
                width: 100%;
                margin-bottom: 20px;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
            }
        }
    }
}

.section-team {
    padding-top: 0;

    .content {
        ul {
            li {
                float: left;
                margin: 0 45px 30px 0;
                width: 48%;

                &:nth-child(2n) {
                    margin-right: 0;
                    ;
                }

                a {
                    position: relative;
                    display: block;
                    padding: 10px;
                    height: 150px;
                    border-radius: 130px;
                    background-color: #efefef;
                    transition: all 0.5s;

                    img {
                        position: absolute;
                        left: 10px;
                        top: 10px;
                        width: 130px;
                        height: 130px;
                        border-radius: 100%;
                    }

                    .desc {
                        margin-left: 150px;
                        padding: 20px 50px 0 0;

                        h3 {
                            margin-bottom: 10px;
                            font-size: 18px;
                            font-weight: bold;

                            span {
                                font-weight: normal;
                                color: #8b8b8b;
                            }
                        }

                        p {
                            line-height: 20px;
                            color: #8b8b8b;
                        }
                    }

                    &:hover {
                        background-color: $color;

                        h3 span,
                        p {
                            color: #fff;
                        }
                    }
                }
            }
        }
    }
}

.footer {
    background-color: #272727;
    border-top: solid 8px $color;
    color: #fff;

    ul {
        li {
            float: left;
            margin: 35px 0;
            margin-bottom: 20px;
            padding: 0 20px;
            width: 150px;

            a {
                display: block;
                height: 20px;
                color: #868686;
                line-height: 20px;
                overflow: hidden;
            }

            h3 {
                font-size: 16px;
                margin-bottom: 10px;
                font-weight: normal;

                a {
                    color: #fff;
                }
            }

            &.tel {
                padding-right: 0;
                width: 190px;
                color: #fff;
                line-height: 30px;
                font-size: 16px;
                text-align: right;

                span {
                    font-size: 22px;
                }

                .ecode {
                    margin-top: 10px;
                    border: 5px solid #fff;
                    width: 150px;
                }
            }
        }
    }

    .copy {
        height: 30px;
        line-height: 30px;
        background-color: #191919;
        font-size: 12px;
    }
}

.inner-content {
    margin-top: 60px;

    .menu-left {
        position: absolute;
        left: 0;
        top: 0px;
        width: 200px;
        text-align: center;

        h2 {
            padding: 15px 0;
            font-size: 22px;
            background-color: $color;
        }

        ul {
            margin-bottom: 30px;
            padding-bottom: 30px;
            background-color: $color;

            li {
                a {
                    display: block;
                    padding: 20px 0;
                    margin: 0 30px;
                    font-size: 16px;
                    border-bottom: 1px solid #fff;
                }

                &.active,
                &:hover {
                    a {
                        color: $color;
                    }
                }
            }
        }

        .contactus {
            padding: 10px;
            background-color: $color;

            p {
                margin-top: 10px;
                text-align: left;
                line-height: 24px
            }
        }

        .btn {
            font-size: 18px;
        }
    }

    .content {
        h1 {
            font-size: 30px;
            text-align: center;
            margin-bottom: 30px;
        }

        h2 {
            display: inline-block;
            margin-bottom: 20px;
            padding: 15px 30px;
            background-color: $color;
            font-size: 18px;
        }

        .desc {
            margin-bottom: 20px;
            line-height: 30px;
            font-size: 18px;

            span {
                color: red;
            }

            a {
                color: red;
                text-decoration: underline;
            }
        }

        margin-left: 200px;
        padding: 0 30px;
        min-height: 800px;

        .list-pic {
            ul {
                li {
                    position: relative;
                    float: left;
                    margin: 0 30px 30px 0;
                    padding: 20px;
                    width: 293px;
                    height: 260px;
                    background-color: $color;
                    box-shadow: 0 0 30px rgba(0, 0, 0, .2);

                    &:nth-child(3n) {
                        margin-right: 0;
                    }

                    img {
                        margin-bottom: 10px;
                        width: 253px;
                        height: 190px;
                    }

                    a {
                        display: block;
                        font-size: 20px;
                        text-align: center;

                        &:hover {
                            color: $color;
                        }
                    }

                    span {
                        display: block;
                        position: absolute;
                        right: 20px;
                        top: 20px;
                        padding: 5px;
                        background-color: rgba(0, 0, 0, .5);
                    }
                }
            }
        }

        .pages {
            margin-bottom: 30px;
            overflow: hidden;

            ul {
                li {
                    float: left;

                    a,
                    span {
                        display: block;
                        margin-right: 15px;
                        padding: 15px 20px;
                        background-color: $color;
                        font-size: 18px;
                    }

                    &.active {

                        a,
                        span {
                            background-color: $color;
                        }
                    }
                }
            }
        }
    }
}